﻿using System;

namespace mal.WP7.GoogleAnalytics.Business.GoogleApi
{
    public class Statistic
    {
        public DateTime StartDate { get; set; }
        public DateTime EndDate { get; set; }
        public Metric Metric { get; set; }
        public Dimension Dimension { get; set; }
        public double Value { get; set; }

        public string StartDateString
        {
            get
            {
                return StartDate.ToString("dd MMMM yyyy");
            }
        }

        public override string ToString()
        {
            return string.Format("Metric:{0}, Dimension:{1}, Value:{2}", Metric, Dimension, Value);
        }
    }
}
